<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>getInfoPageList</title>

    <script src="/static/js/jquery-1.9.1.min.js"></script>
    <script th:src="@{/js/jquery-1.9.1.min.js}"></script>
    <script src="/static/js/bootstrap.js"></script>
    <script th:src="@{/js/bootstrap.js}"></script>

    <link rel="stylesheet" href="/static/css/bootstrap.css">
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}">


    <style>
        body{
            padding: 100px;
        }
        .form1{
            padding-top: 20px;
        }
    </style>
</head>
<body>
<p th:text="${msg}">getInfoPageList</p>


<div class="form1">
    <form class="form-horizontal" role="form" th:action="@{getInfoPageList}" method="post">
        <div class="form-group">

            <label class="col-sm-2 control-label">主债人姓名: </label>
            <p class="col-sm-1">
                <input type="text" class="form-control" name="name" id="1" placeholder="请输入">
            </p>

            <label class="col-sm-1 control-label">城市: </label>
            <p class="col-sm-1">
                <input type="text" class="form-control" name="city" id="2" placeholder="请输入">
            </p>


            <label class="col-sm-1 control-label">起止日期: </label>
            <p class="col-sm-1">
                <input type="text" class="form-control" id="3" placeholder="请选择">
            </p>
            <p class="col-sm-1">
                <input type="text" class="form-control" id="4" placeholder="请选择">
            </p>

            <label class="col-sm-1 control-label"></label>
            <p class="col-sm-1">
                <input type="submit" class="form-control btn btn-primary" id="5" value="查询" placeholder="请选择">
            </p>

        </div>
    </form>
</div>




<br><br>

<div>
    <table class="table table-hover">
        <caption>悬停表格布局</caption>
        <thead>
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>车辆品牌</th>
            <th>申请金额（万元）</th>
            <th>提交日期</th>
            <th>状态</th>
            <th>城市</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:if="${infoPageList.size()} eq 0">
            <td colspan="8">没有用户信息</td>
        </tr>
        <tr th:each="info:${infoPageList}">
            <td th:text="${infoStat.count}"></td>
            <td th:text="${info.name}"></td>
            <td th:text="${info.paizi}"></td>
            <td th:text="${info.money}"></td>
            <td th:text="${info.createTime}">2021</td>
            <td th:if="${info.status}eq'0'" th:text="${info.status}eq'0'?'未受理':'已受理'"></td>
            <td th:if="${info.status}ne'0'" th:text="${info.status}eq'1'?'已受理':'拒绝受理'"></td>
            <td th:text="${shi.name}"></td>
            <td><a th:href="@{/info/toDetails(id=${info.id})}">详情</a></td>
        </tr>
        </tbody>
    </table>
</div>

<div>
    <ul>
        <!--<li th:each="pageNum:${#numbers.sequence(1,infoPage.pages -1)}"-->
            <!--th:if="${methods} == post">-->
            <!--<a th:href="@{/info/getInfoPageList(pageNum=${pageNum},name=${name})}">[[${pageNum}]] |</a>-->
        <!--</li>-->
        <!--<li th:each="pageNum:${#numbers.sequence(1,infoPage.pages -1)}">-->
            <!--<a th:href="@{/info/getPageList(pageNum=${pageNum})}">[[${pageNum}]]</a>-->
        <!--</li>-->
    </ul>

    <ul class="pagination">
        <li><a href="#">&laquo;</a></li>
        <li th:each="pageNum:${#numbers.sequence(1,infoPage.pages)}">
            <a th:href="@{/info/getPageList(pageNum=${pageNum})}">[[${pageNum}]]</a>
        </li>
        <li><a href="#">&raquo;</a></li>
    </ul>
</div>

</body>
</html>